package cn.admin.service.impl;

import cn.admin.dao.MenusMapper;
import cn.admin.entity.Menus;
import cn.admin.service.MenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 12:06 2019/3/24
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MenusServiceImpl implements MenusService {

    @Autowired private MenusMapper menusMapper;

    @Override
    public List<Menus> getMenus(int admin_id) {
        return menusMapper.findMenusByAdminId(admin_id);
    }
}
